<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本属性</title>
    <style>
        h1 {
            text-align: center;
            <!--添加修饰_上下删划线 -->
            /*text-decoration: underline;*/
            /*text-decoration: overline;*/
            text-decoration: line-through;
        }
        #text {
            /*控制文本大小写属性*/
            text-transform: uppercase;
            /*text-transform: lowercase;*/
            /*text-transform: capitalize;*/
        }
        .stats {
            /*规定文本块中首行文本的缩进*/
            text-indent: 2em;
        }
    </style>
</head>
<body>
<h1 id="text" class="stats">text</h1>
</body>
</html>